<?php if( !defined('BASEPATH')) exit('No direct script access allowed');


class Pdf {
	
	protected $ci;
	
	
	public function __construct() { 
		 $this->ci =& get_instance();
		 $this->ci->load->library('fpdf');
		 
    } 
	
	public function tulis($str){
		
		$this->ci->fpdf->open();
		$this->ci->fpdf->AddPage();
		$this->ci->fpdf->SetFont('Arial');
		
		$this->ci->fpdf->MultiCell(30,0,$str);
		$this->ci->fpdf->MultiCell(30,10,$str);
	}
	
	public function cetak()
	{
		$this->ci->fpdf->output();
	}
	
	
}
